package com.atguigu.sso_client1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.LinkedList;
import java.util.List;
import java.util.Optional;

@SpringBootApplication
public class SsoClient1Application {

    public static void main(String[] args) {
        List<String> list=new LinkedList<>();
        list.add("aaaaa");
        list.add("bbbbb");
        Optional<List<String>> strings = Optional.ofNullable(list).map(s -> {
            System.out.println(s+"ccc");
            return s;
        });
        System.out.println(strings);
        SpringApplication.run(SsoClient1Application.class, args

        );
    }

}
